you have to use the csjs / ssjs conversion to get the id of the element you want in your csjs.
either
"#{javascript:getClientId("CustomerName1")}"
or
"#{id:CustomerName1}"
so in your case dojo.byId("#{id:myEditBox}");
should work if the name of the component is 'myEditBox'